<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>修改友情链接</title>
		<js file="__STATIC__/js/jq.js" />
		<css file="__STATIC__/hdjs/hdjs.css" />
		<js file="__STATIC__/hdjs/hdjs.js" />
		<script type="text/javascript">
			$(function(){
				$('#close').click(function(){
					$(this).prev().remove();
					$(this).remove();
				})
			})
		</script>
	</head>

	<body>

		<table class="hd-table hd-table-form hd-form">
			<thead>
				<form action="__CONTROLLER__/edit" method="post" enctype="multipart/form-data">
				<tr>
					<td colspan="2">添加友情链接</td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<th width="100">网站名:</th>
					<td>
						<input type="hidden" name="fid" value="{$result.fid}" />
						<input type="text" name="fname" value="{$result.fname}" />
					</td>
				</tr>
				<tr>
					<th>连接地址:</th>
					<td>
						<input type="text" name="url"  value="{$result.url}">
					</td>
				</tr>
				<tr>
					<th>是否显示</th>
					<td>
						显示<input type="radio" value="1" name="is_show" <if value="$result.is_show==1" >checked="checked"</if> />
						隐藏<input type="radio" value="0" name="is_show" <if value="$result.is_show==0" >checked="checked"</if> />
					</td>
				</tr>
				<tr>
					<th>图片</th>
					<td class="thumb">
						<if value="$result.logo">
							<img src="__ROOT__/{$result.logo}" alt="" />
							<a href="javascript:;" id="close">X</a>							
						</if><br  />
						<input type="file" name="logo"  />
					</td>
				</tr>
				<tr>
					<th>顺序</th>
					<td>
						<input type="text" name="sort" value="{$result.sort}" />
					</td>
				</tr>
				<tr>
					<th>网站描述:</th>
					<td>
						<textarea name="msg" id="" cols="30" rows="10">{$result.msg}</textarea>
					</td>
				</tr>
				<tr>
					<th></th>
					<td> <input type="submit" value="提交" class="hd-btn hd-btn-primary hd-btn-sm" />  <input class="hd-btn hd-btn-danger hd-btn-sm" type="reset" value="重置" /></td>
				</tr>
			</tbody>
			</form>
		</table>

	</body>

</html>